#include<stdio.h>
int main()
{
 int year,count=0;
 for(year=2000;year<=3000;year++);
 {
  if(year/4==0&&year/100!=0||year/400==0)
  printf("%d ",year,count=count+1);
 
  }
  printf("\ncount=%d",count);
  return 0;
}
